<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>我的收藏 - 1024导航</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#3B82F6',
                        secondary: '#10B981',
                        accent: '#F59E0B',
                        dark: '#1F2937',
                        light: '#F9FAFB'
                    },
                    fontFamily: {
                        sans: ['Inter', 'system-ui', 'sans-serif'],
                    },
                }
            }
        }
    </script>
    <style type="text/tailwindcss">
        @layer utilities {
            .content-auto {
                content-visibility: auto;
            }
            .card-hover {
                @apply transition-all duration-300 hover:shadow-lg hover:-translate-y-1;
            }
            .sidebar-active {
                @apply bg-primary/10 text-primary border-l-4 border-primary;
            }
            .text-gradient {
                @apply bg-clip-text text-transparent bg-gradient-to-r from-primary to-secondary;
            }
        }
    </style>
</head>

<body class="bg-gray-50 font-sans text-gray-800">
    <!-- 顶部导航栏 -->
    <header class="sticky top-0 z-50 bg-white shadow-sm transition-all duration-300">
        <div class="container mx-auto px-4 py-3 flex justify-between items-center">
            <div class="flex items-center space-x-2">
                <div class="text-primary text-2xl font-bold">1024<span class="text-secondary">导航</span></div>
                <span class="hidden md:inline-block text-sm text-gray-500 bg-gray-100 px-2 py-1 rounded">v2.3</span>
            </div>

            <nav class="hidden md:flex items-center space-x-6">
                <a href="index.html" class="text-gray-600 hover:text-primary transition-colors">首页</a>
                <a href="resources.html" class="text-gray-600 hover:text-primary transition-colors">资源</a>
                <a href="tools.html" class="text-gray-600 hover:text-primary transition-colors">工具</a>
                <a href="community.html" class="text-gray-600 hover:text-primary transition-colors">社区</a>
                <a href="about.html" class="text-gray-600 hover:text-primary transition-colors">关于</a>
            </nav>

            <div class="flex items-center space-x-3">
                <div class="relative group">
                    <button
                        class="flex items-center space-x-2 px-3 py-1.5 rounded-full bg-gray-100 hover:bg-gray-200 transition-colors">
                        <img src="https://picsum.photos/id/1005/40/40" alt="用户头像"
                            class="w-8 h-8 rounded-full object-cover border-2 border-white">
                        <span class="hidden md:inline-block text-sm font-medium">张小明</span>
                        <i class="fa fa-angle-down text-gray-500"></i>
                    </button>
                    <div
                        class="absolute right-0 mt-2 w-48 bg-white rounded-lg shadow-lg py-2 z-10 hidden group-hover:block">
                        <a href="profile.html" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">个人中心</a>
                        <a href="settings.html" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">账号设置</a>
                        <div class="border-t border-gray-100 my-1"></div>
                        <a href="#" class="block px-4 py-2 text-sm text-red-600 hover:bg-gray-100">退出登录</a>
                    </div>
                </div>
                <button class="md:hidden text-gray-600 text-xl">
                    <i class="fa fa-bars"></i>
                </button>
            </div>
        </div>
    </header>

    <!-- 页面标题 -->
    <section class="py-10 bg-gradient-to-b from-white to-gray-50 border-b border-gray-100">
        <div class="container mx-auto px-4">
            <div class="max-w-3xl mx-auto text-center">
                <h1 class="text-[clamp(1.8rem,5vw,2.5rem)] font-bold mb-4 text-gradient">我的收藏</h1>
                <p class="text-gray-600">管理您收藏的所有资源和工具</p>
            </div>
        </div>
    </section>

    <!-- 个人中心内容区 -->
    <section class="py-10">
        <div class="container mx-auto px-4">
            <div class="max-w-6xl mx-auto">
                <div class="grid grid-cols-1 lg:grid-cols-4 gap-8">
                    <!-- 侧边栏 -->
                    <div class="lg:col-span-1">
                        <div class="bg-white rounded-xl shadow-sm overflow-hidden sticky top-24">
                            <!-- 用户信息 -->
                            <div class="p-6 border-b border-gray-100">
                                <div class="flex flex-col items-center">
                                    <img src="https://picsum.photos/id/1005/100/100" alt="张小明"
                                        class="w-20 h-20 rounded-full object-cover border-4 border-white shadow-sm mb-3">
                                    <h3 class="font-bold text-lg">张小明</h3>
                                    <p class="text-gray-500 text-sm mb-3">普通会员</p>
                                    <div class="w-full bg-gray-200 rounded-full h-1.5 mb-1">
                                        <div class="bg-primary h-1.5 rounded-full" style="width: 65%"></div>
                                    </div>
                                    <p class="text-gray-500 text-xs">积分：650/1000（距离下一等级还差350分）</p>
                                </div>
                            </div>

                            <!-- 导航菜单 -->
                            <div class="p-2">
                                <a href="profile.html"
                                    class="flex items-center px-4 py-3 text-sm text-gray-700 hover:bg-gray-50">
                                    <i class="fa fa-user-circle w-5 text-center mr-3"></i>
                                    <span>个人资料</span>
                                </a>
                                <a href="collections.html" class="flex items-center px-4 py-3 text-sm sidebar-active">
                                    <i class="fa fa-bookmark w-5 text-center mr-3"></i>
                                    <span>我的收藏</span>
                                    <span
                                        class="ml-auto bg-gray-100 text-gray-600 text-xs px-2 py-0.5 rounded-full">12</span>
                                </a>
                                <a href="history.html"
                                    class="flex items-center px-4 py-3 text-sm text-gray-700 hover:bg-gray-50">
                                    <i class="fa fa-history w-5 text-center mr-3"></i>
                                    <span>浏览历史</span>
                                </a>
                                <a href="contributions.html"
                                    class="flex items-center px-4 py-3 text-sm text-gray-700 hover:bg-gray-50">
                                    <i class="fa fa-paper-plane w-5 text-center mr-3"></i>
                                    <span>我的贡献</span>
                                    <span
                                        class="ml-auto bg-gray-100 text-gray-600 text-xs px-2 py-0.5 rounded-full">8</span>
                                </a>
                                <a href="messages.html"
                                    class="flex items-center px-4 py-3 text-sm text-gray-700 hover:bg-gray-50">
                                    <i class="fa fa-bell w-5 text-center mr-3"></i>
                                    <span>消息通知</span>
                                    <span
                                        class="ml-auto bg-red-500 text-white text-xs px-2 py-0.5 rounded-full">3</span>
                                </a>
                                <div class="border-t border-gray-100 my-1"></div>
                                <a href="settings.html"
                                    class="flex items-center px-4 py-3 text-sm text-gray-700 hover:bg-gray-50">
                                    <i class="fa fa-cog w-5 text-center mr-3"></i>
                                    <span>账号设置</span>
                                </a>
                                <a href="#" class="flex items-center px-4 py-3 text-sm text-gray-700 hover:bg-gray-50">
                                    <i class="fa fa-question-circle w-5 text-center mr-3"></i>
                                    <span>帮助中心</span>
                                </a>
                            </div>
                        </div>
                    </div>

                    <!-- 主内容区 -->
                    <div class="lg:col-span-3">
                        <!-- 收藏筛选 -->
                        <div class="bg-white rounded-xl shadow-sm p-6 mb-8">
                            <div class="flex flex-wrap items-center justify-between gap-4">
                                <div class="flex flex-wrap gap-2">
                                    <button
                                        class="px-4 py-2 bg-primary text-white rounded-md hover:bg-primary/90 transition-colors">
                                        全部收藏
                                    </button>
                                    <button
                                        class="px-4 py-2 bg-gray-100 text-gray-700 rounded-md hover:bg-gray-200 transition-colors">
                                        开发工具
                                    </button>
                                    <button
                                        class="px-4 py-2 bg-gray-100 text-gray-700 rounded-md hover:bg-gray-200 transition-colors">
                                        设计资源
                                    </button>
                                    <button
                                        class="px-4 py-2 bg-gray-100 text-gray-700 rounded-md hover:bg-gray-200 transition-colors">
                                        学习教育
                                    </button>
                                    <button
                                        class="px-4 py-2 bg-gray-100 text-gray-700 rounded-md hover:bg-gray-200 transition-colors">
                                        影音娱乐
                                    </button>
                                </div>
                                <div class="relative">
                                    <select
                                        class="pl-4 pr-10 py-2 bg-gray-100 text-gray-700 rounded-md appearance-none focus:outline-none focus:ring-2 focus:ring-primary/50">
                                        <option>最新收藏</option>
                                        <option>最早收藏</option>
                                        <option>热度排序</option>
                                    </select>
                                    <i
                                        class="fa fa-chevron-down absolute right-3 top-1/2 -translate-y-1/2 text-gray-500 pointer-events-none"></i>
                                </div>
                            </div>
                        </div>

                        <!-- 收藏列表 -->
                        <div class="bg-white rounded-xl shadow-sm overflow-hidden mb-8">
                            <div class="divide-y divide-gray-100">
                                <!-- 收藏项1 -->
                                <div
                                    class="flex flex-col md:flex-row items-start md:items-center p-5 hover:bg-gray-50 transition-colors">
                                    <div
                                        class="w-12 h-12 rounded-lg bg-blue-100 flex items-center justify-center text-primary mr-4 mb-4 md:mb-0 flex-shrink-0">
                                        <i class="fa fa-code text-xl"></i>
                                    </div>
                                    <div class="flex-grow mb-4 md:mb-0">
                                        <div class="flex flex-wrap items-start justify-between gap-2">
                                            <div>
                                                <h3 class="font-semibold text-gray-800 mb-1">在线代码编辑器</h3>
                                                <p class="text-gray-500 text-sm mb-2 max-w-lg">
                                                    无需安装，在线编写和运行多种编程语言代码，支持实时预览和分享功能</p>
                                                <span
                                                    class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded-full">开发工具</span>
                                            </div>
                                            <div class="text-gray-500 text-sm whitespace-nowrap">
                                                收藏于 2023-10-20
                                            </div>
                                        </div>
                                    </div>
                                    <div class="flex items-center space-x-3">
                                        <a href="#" class="text-primary hover:underline text-sm">访问</a>
                                        <button class="text-gray-400 hover:text-red-500 transition-colors" title="取消收藏">
                                            <i class="fa fa-trash-o"></i>
                                        </button>
                                    </div>
                                </div>

                                <!-- 收藏项2 -->
                                <div
                                    class="flex flex-col md:flex-row items-start md:items-center p-5 hover:bg-gray-50 transition-colors">
                                    <div
                                        class="w-12 h-12 rounded-lg bg-purple-100 flex items-center justify-center text-purple-600 mr-4 mb-4 md:mb-0 flex-shrink-0">
                                        <i class="fa fa-paint-brush text-xl"></i>
                                    </div>
                                    <div class="flex-grow mb-4 md:mb-0">
                                        <div class="flex flex-wrap items-start justify-between gap-2">
                                            <div>
                                                <h3 class="font-semibold text-gray-800 mb-1">免费UI设计模板</h3>
                                                <p class="text-gray-500 text-sm mb-2 max-w-lg">
                                                    精选高质量UI设计模板，可直接下载使用，支持Figma和Sketch格式，定期更新</p>
                                                <span
                                                    class="text-xs bg-purple-100 text-purple-800 px-2 py-1 rounded-full">设计资源</span>
                                            </div>
                                            <div class="text-gray-500 text-sm whitespace-nowrap">
                                                收藏于 2023-10-18
                                            </div>
                                        </div>
                                    </div>
                                    <div class="flex items-center space-x-3">
                                        <a href="#" class="text-primary hover:underline text-sm">访问</a>
                                        <button class="text-gray-400 hover:text-red-500 transition-colors" title="取消收藏">
                                            <i class="fa fa-trash-o"></i>
                                        </button>
                                    </div>
                                </div>

                                <!-- 收藏项3 -->
                                <div
                                    class="flex flex-col md:flex-row items-start md:items-center p-5 hover:bg-gray-50 transition-colors">
                                    <div
                                        class="w-12 h-12 rounded-lg bg-amber-100 flex items-center justify-center text-amber-600 mr-4 mb-4 md:mb-0 flex-shrink-0">
                                        <i class="fa fa-graduation-cap text-xl"></i>
                                    </div>
                                    <div class="flex-grow mb-4 md:mb-0">
                                        <div class="flex flex-wrap items-start justify-between gap-2">
                                            <div>
                                                <h3 class="font-semibold text-gray-800 mb-1">编程学习路径</h3>
                                                <p class="text-gray-500 text-sm mb-2 max-w-lg">
                                                    从入门到精通的完整编程学习路径，包含视频教程和实战项目，适合各阶段学习者</p>
                                                <span
                                                    class="text-xs bg-amber-100 text-amber-800 px-2 py-1 rounded-full">学习教育</span>
                                            </div>
                                            <div class="text-gray-500 text-sm whitespace-nowrap">
                                                收藏于 2023-10-15
                                            </div>
                                        </div>
                                    </div>
                                    <div class="flex items-center space-x-3">
                                        <a href="#" class="text-primary hover:underline text-sm">访问</a>
                                        <button class="text-gray-400 hover:text-red-500 transition-colors" title="取消收藏">
                                            <i class="fa fa-trash-o"></i>
                                        </button>
                                    </div>
                                </div>

                                <!-- 收藏项4 -->
                                <div
                                    class="flex flex-col md:flex-row items-start md:items-center p-5 hover:bg-gray-50 transition-colors">
                                    <div
                                        class="w-12 h-12 rounded-lg bg-teal-100 flex items-center justify-center text-teal-600 mr-4 mb-4 md:mb-0 flex-shrink-0">
                                        <i class="fa fa-image text-xl"></i>
                                    </div>
                                    <div class="flex-grow mb-4 md:mb-0">
                                        <div class="flex flex-wrap items-start justify-between gap-2">
                                            <div>
                                                <h3 class="font-semibold text-gray-800 mb-1">无版权图库</h3>
                                                <p class="text-gray-500 text-sm mb-2 max-w-lg">
                                                    提供海量免费无版权图片，可用于商业用途，支持一键下载和多种分辨率选择</p>
                                                <span
                                                    class="text-xs bg-teal-100 text-teal-800 px-2 py-1 rounded-full">图片素材</span>
                                            </div>
                                            <div class="text-gray-500 text-sm whitespace-nowrap">
                                                收藏于 2023-10-12
                                            </div>
                                        </div>
                                    </div>
                                    <div class="flex items-center space-x-3">
                                        <a href="#" class="text-primary hover:underline text-sm">访问</a>
                                        <button class="text-gray-400 hover:text-red-500 transition-colors" title="取消收藏">
                                            <i class="fa fa-trash-o"></i>
                                        </button>
                                    </div>
                                </div>

                                <!-- 收藏项5 -->
                                <div
                                    class="flex flex-col md:flex-row items-start md:items-center p-5 hover:bg-gray-50 transition-colors">
                                    <div
                                        class="w-12 h-12 rounded-lg bg-red-100 flex items-center justify-center text-red-600 mr-4 mb-4 md:mb-0 flex-shrink-0">
                                        <i class="fa fa-film text-xl"></i>
                                    </div>
                                    <div class="flex-grow mb-4 md:mb-0">
                                        <div class="flex flex-wrap items-start justify-between gap-2">
                                            <div>
                                                <h3 class="font-semibold text-gray-800 mb-1">高清影视资源</h3>
                                                <p class="text-gray-500 text-sm mb-2 max-w-lg">
                                                    免费观看高清电影和电视剧，无广告干扰，更新及时，支持多设备同步播放记录</p>
                                                <span
                                                    class="text-xs bg-red-100 text-red-800 px-2 py-1 rounded-full">影音娱乐</span>
                                            </div>
                                            <div class="text-gray-500 text-sm whitespace-nowrap">
                                                收藏于 2023-10-08
                                            </div>
                                        </div>
                                    </div>
                                    <div class="flex items-center space-x-3">
                                        <a href="#" class="text-primary hover:underline text-sm">访问</a>
                                        <button class="text-gray-400 hover:text-red-500 transition-colors" title="取消收藏">
                                            <i class="fa fa-trash-o"></i>
                                        </button>
                                    </div>
                                </div>
                            </div>

                            <!-- 分页 -->
                            <div class="p-5 border-t border-gray-100">
                                <div class="flex items-center justify-between">
                                    <p class="text-sm text-gray-500">显示 1-5 条，共 12 条收藏</p>
                                    <div class="flex items-center space-x-1">
                                        <button
                                            class="w-9 h-9 flex items-center justify-center rounded-md border border-gray-200 text-gray-400 hover:border-primary hover:text-primary disabled:opacity-50 disabled:cursor-not-allowed"
                                            disabled>
                                            <i class="fa fa-angle-left"></i>
                                        </button>
                                        <button
                                            class="w-9 h-9 flex items-center justify-center rounded-md bg-primary text-white">1</button>
                                        <button
                                            class="w-9 h-9 flex items-center justify-center rounded-md border border-gray-200 hover:border-primary hover:text-primary">2</button>
                                        <button
                                            class="w-9 h-9 flex items-center justify-center rounded-md border border-gray-200 hover:border-primary hover:text-primary">3</button>
                                        <button
                                            class="w-9 h-9 flex items-center justify-center rounded-md border border-gray-200 hover:border-primary hover:text-primary">
                                            <i class="fa fa-angle-right"></i>
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 底部区域 -->
    <footer class="bg-gray-800 text-gray-300 py-10 mt-10">
        <div class="container mx-auto px-4">
            <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
                <div>
                    <h3 class="text-white text-lg font-semibold mb-4">1024导航</h3>
                    <p class="text-sm text-gray-400 mb-4">精选互联网优质资源，打造高效便捷的导航平台，助力你的工作与学习。</p>
                    <div class="flex space-x-4">
                        <a href="#" class="text-gray-400 hover:text-white transition-colors">
                            <i class="fa fa-github text-xl"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-white transition-colors">
                            <i class="fa fa-twitter text-xl"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-white transition-colors">
                            <i class="fa fa-weixin text-xl"></i>
                        </a>
                    </div>
                </div>

                <div>
                    <h3 class="text-white font-medium mb-4">快速链接</h3>
                    <ul class="space-y-2 text-sm">
                        <li><a href="index.html" class="text-gray-400 hover:text-white transition-colors">首页</a></li>
                        <li><a href="resources.html" class="text-gray-400 hover:text-white transition-colors">资源分类</a>
                        </li>
                        <li><a href="tools.html" class="text-gray-400 hover:text-white transition-colors">实用工具</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">最新收录</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">热门推荐</a></li>
                    </ul>
                </div>

                <div>
                    <h3 class="text-white font-medium mb-4">帮助支持</h3>
                    <ul class="space-y-2 text-sm">
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">使用指南</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">资源提交</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">常见问题</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">联系我们</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">举报不良信息</a></li>
                    </ul>
                </div>

                <div>
                    <h3 class="text-white font-medium mb-4">关于我们</h3>
                    <ul class="space-y-2 text-sm">
                        <li><a href="about.html" class="text-gray-400 hover:text-white transition-colors">网站介绍</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">隐私政策</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">使用条款</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">加入我们</a></li>
                    </ul>
                </div>
            </div>

            <div class="border-t border-gray-700 mt-8 pt-6 text-center text-sm text-gray-500">
                <p>© 2023 1024导航 - 精选优质互联网资源</p>
            </div>
        </div>
    </footer>
</body>

</html>